home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 5
/
Aminet 5 - March 1995.iso
/
Aminet
/
util
/
cli
/
capstest.lha
/
capstest.readme
< prev
next >
Wrap
Text File
|
1994-12-02
|
730b
|
22 lines
Short: Reports caps lock status, useful for scripts etc.
Type: util/cli
Uploader: lauri.aalto@fipnet.fi
Author: lauri.aalto@fipnet.fi
I needed a simple program for my scripts which would examine the status of
the caps lock key and report it so the script could act respectively. After
a quick scan over my file base I was unable to find such a tool so I
decided to write one of my own. Here's the result.
Usage:
if `capstest` eq 1 ; capstest returns either 0 or 1
echo "Caps lock was active"
else
echo "Caps lock was inactice"
endif
Source code compilable at least with DICE 3.0 has been included. Just type
'execute capstest.c' to compile. Feel free to do whatever with these files
- they're all public domain.